import request from '@/utils/request'

export default {
  /**
   * 根据手机号发验证码
   * @param {手机号} phone 
   * @returns 
   */
  sendCode(phone) {
    return request({
      url: `/msmservice/send/${phone}`,
      method: 'get'
    })
  },
  /**
   * 提交注册
   * @param {用户注册对象} member 
   * @returns 
   */
  registerMember(member) {
    return request({
      url: '/ucenterservice/member/register',
      method: 'post',
      data: member
    })
  }

}